//
//  Util.m
//  MenuTest
//
//  Created by Ngoc on 4/28/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "Util.h"


@implementation Util
+ (void) showSimpleMessageBox:(NSString*)message withTitle:(NSString*)title
{
    UIAlertView	*alert = [[UIAlertView alloc] initWithTitle:title message: message delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
    [alert show];
    [alert release];
}
+ (void) showDebugMessageBox:(NSString*)errorName description:(NSString *)errordescription
{
    UIAlertView	*alert = [[UIAlertView alloc] initWithTitle:@"Error"
                                                    message: [[NSString alloc] initWithFormat:@"Error: %@\nDetail:%@",errorName,errordescription]
                                                   delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
    [alert show];
    [alert release];
}
@end
